﻿@{
    Layout = "~/Views/Shared/_SignLayout.cshtml";
    ViewBag.Title = "三宝云消息";
}

<header class="reg_header">
    @if (ViewBag.Membership!=null)
    {
        <img src="~/Styles/Themes/Google/Images/logo_2x.png" />
        <span>
            <a id="account-link-button">@ViewBag.Membership.Name</a>
            <a href='@Url.Action("SignOut", "Account", new { returnUrl = ViewBag.ReturnUrl })'>退出</a>
        </span>
    }
    else
    {
        <img src="~/Styles/Themes/Google/Images/logo_2x.png" /><span><a href='@Url.Action("SignOut", "Account")'>登录</a></span>
    }
</header>

<div class="activate_main w80">
    <div class="account_activate">

        <div class="account_activate position_account">
            @using (Html.BeginForm("ShowMessage", "Message", new { returnUrl = ViewBag.ReturnUrl ?? Url.Content("~/") }))
            {
                <div class="wgt-16">
                    @switch ((string)@ViewBag.MessageType)
                    {
                        case "Success": 
                        <img src="~/Styles/Themes/Google/Images/success-green.PNG" />
                            break;
                        case "Failed": 
                        <img src="~/Styles/Themes/Google/Images/failed-red.PNG" />  
                            break;
                        case "Warning":
                        <img src="~/Styles/Themes/Google/Images/alert-blue.png" />
                            break;
                        default:
                        <img src="~/Styles/Themes/Google/Images/alert-blue.png" />
                            break;
                    }

                    <span class="activateMessage"> @Html.Raw(HttpUtility.UrlDecode( ViewBag.Message))</span>
                     @*<span class="activateMessage">@Html.Raw("<a href='/Me'>qwertyui</a>")</span>*@
                </div>
                
            }
        </div>
    </div>
</div>


